import { RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: "admin",
        component: { render: () => h(resolveComponent("router-view")) },
        meta: {
            title: "媒资管理",
            iconNotActive: "icon-media",
            iconActive: "icon-media-active",
        },
        children: [
            {
                path: "index",
                component: () => import("../views/MediaIndex/Index.vue"),
                meta: {
                    title: "媒资列表",
                    isNeed: true,
                    breadcrumb: [
                        {
                            name: "媒资管理",
                        },
                        {
                            name: "媒资列表",
                        },
                    ],
                },
            },
            {
                path: "mediaDetails",
                component: () => import("../views/MediaDetail/index.vue"),
                meta: {
                    title: "媒资列表",
                    isNeed: true,
                    breadcrumb: [
                        {
                            name: "媒资管理",
                        },
                        {
                            name: "媒资列表",
                        },
                    ],
                },
            },
            {
                path: "video",
                component: () => import("../views/videoLib/index.vue"),
                meta: {
                    title: "媒资列表",
                    isNeed: false,
                    breadcrumb: [
                        {
                            name: "媒资管理",
                        },
                        {
                            name: "媒资列表",
                        },
                    ],
                },
            },
            {
                path: "mediaTag",
                component: () => import("../views/MediaTag/index.vue"),
                meta: {
                    title: "人物信息",
                    isNeed: true
                },
            },
            {
                path: "character",
                component: () => import("../views/MediaCharacter/index.vue"),
                meta: {
                    title: "人物信息",
                    isNeed: true
                },
            },
            {
                path: "demo",
                component: () => import("../views/Index/Index.vue"),
                meta: {
                    title: "人物信息",
                    isNeed: true
                },
            },
        ],
    },
];

export default routes;
